﻿/*
* Activity Tracking Log v0.1.1 - http://activitytrackinglog.codeplex.com
* Activity Tracking Log for ASP.Net & ASP.Net MVC
* Copyright (c) 2011 Vadim Burac
* Licensed under the Microsoft Public License (Ms-PL)
* http://activitytrackinglog.codeplex.com/license
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ActivityTrackingLog.Data;
using System.Linq.Expressions;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;

namespace ActivityTrackingLog.Storage
{
    internal class BaseContext : IDisposable
    {
        #region ctors

        public BaseContext()
        {
        }

        #endregion

        #region command methods

        public virtual void ReleaseResources()
        {
        }
        
        public virtual void SubmitChanges()
        {
        }
        
        #endregion

        #region entity related logic

        public virtual IQueryable<T> GetQuery<T>() where T : class
        {
            throw new NotImplementedException();
        }

        public virtual void Add(ActivityItem item)
        {
        }

        public virtual void RemoveAll(Expression<Func<ActivityItem, bool>> predicate)
        {
        }

        public virtual int Count()
        {
            throw new NotImplementedException();
        }

        #endregion

        #region IDisposable implementation

        public void Dispose()
        {
            ReleaseResources();
        }

        #endregion
    }
}
